package org.fujay.langchain4jserver.infrastructure.persistence.mybatis.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.fujay.mybatis.core.base.BaseEntity;

/**
 * 应用持久化实体 (对应 app 表)
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "app")
public class AppPo extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "app_name")
    private String appName;

    @TableField(value = "app_desc")
    private String appDesc;

    @TableField(value = "model_id")
    private Long modelId;

    @TableField(value = "use_knowledge_base")
    private Boolean useKnowledgeBase;

    @TableField(value = "knowledge_base_id")
    private Long knowledgeBaseId;

    @TableField(value = "del_flag")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "current_config_history_id")
    private Long currentConfigHistoryId;
}
